﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using simulate_control.Helpers;

namespace simulate_control.Models
{
    public class DataContext
    {
        private static SimulatorEntities _dataContext = null;

        static DataContext()
        {
            _dataContext = new SimulatorEntities(GlobalVariables.BuildEntityConnectionString());
        }

        public static SimulatorEntities Instance
        {
            get { return _dataContext; }
        }
    }
}